import Vuex from 'vuex';
import Vue from "vue";

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        mainMenus: [
            {
                path: "/home",
                context: "主页",
                subMenus: [
                ]
            },
            {
                path: "/sign",
                context: "签到管理",
                subMenus: [
                    {
                        path: "/sign/token",
                        context: "令牌界面"
                    },
                    {
                        path: "/sign/query",
                        context: "签到记录"
                    }
                ]
            },
            {
                path: "/task",
                context: "任务管理",
                subMenus: [
                    {
                        path: "/task/mytask",
                        context: "我的任务"
                    },
                    {
                        path: "/task/issue",
                        context: "发布任务"
                    },
                    {
                        path: "/task/task_record",
                        context: "任务记录"
                    }
                ]
            }
        ],
        loginMenus: [
            {
                path: "/login",
                context: "登录"
            }
        ],
        userMenus: [
            {
                path: "",
                context: "欢迎你，",
                subMenus: [
                    {
                        path: "/profile",
                        context: "个人中心",
                    },
                    {
                        path: "/login",
                        context: "退出登录"
                    }
                ]
            }
        ],
    },
    mutations: {
    },
    actions: {
    },
    modules: {
    }
})
